﻿using System;
using System.Data;
using System.Collections.Generic;

using Com.Framework.Data;
using Com.Library.DB;

namespace Com.Library.DB.Event
{
	internal class EventGetList : DBDataReader<EventEntity, OutputEntity>
	{
		public EventGetList()
			: base(new ConnectionString(), "TSP_Event_GetList")
		{
		}

		protected override void ParameterInitialize()
        {
			AddParameter("_isCurrentOnly", SqlDbType.Bit, 1, SqlDataInOut.Input);
			AddParameter("isShow", SqlDbType.Bit, 1, SqlDataInOut.Input);
            AddParameter("PageNo", SqlDbType.Int, 4, SqlDataInOut.Input);
            AddParameter("PageSize", SqlDbType.TinyInt, 1, SqlDataInOut.Input);
            AddParameter("CntRow", SqlDbType.Int, 4, SqlDataInOut.Output);
            AddParameter("CntTotal", SqlDbType.Int, 4, SqlDataInOut.Output);
        }
	}
}